package com.fjut.pms.action;

import com.fjut.pms.pojo.Educate;
import com.fjut.pms.service.IEduService;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class EducateAction extends ActionSupport implements ModelDriven<Educate> {

	private static final long serialVersionUID = -2032140967683046748L;
	private IEduService eduService;
	private Educate edu = new Educate();

	public String show(){
		edu=eduService.findByEmpId(edu.getEmployee().getId());
		return "show";
	}
	
	public IEduService getEduService() {
		return eduService;
	}

	public void setEduService(IEduService eduService) {
		this.eduService = eduService;
	}

	public Educate getEdu() {
		return edu;
	}

	public void setEdu(Educate edu) {
		this.edu = edu;
	}

	public Educate getModel() {
		return this.getEdu();
	}

}
